/**
 * @author fenglei.you
 */
Me.DoubleBuffer=function(){};
Me.DoubleBuffer.prototype.getCanvas=function(w,h){
	var canvas = document.createElement('canvas');
	if(w && h){
		canvas.width=w;
		canvas.height=h;
	}else{
		canvas.width=Me.globalStage.width;
		canvas.height=Me.globalStage.height;
	}
	return canvas;
}

Me.DBF = {};
Me.DBF.getIt=function(){
	return new Me.DoubleBuffer();
}
Me.DBF.getCanvas=function(){
	return this.getIt().getCanvas();
}
